package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.bizimpl.upmp.domain.WctFstInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author LiuYuLiang.LL
 */
public interface WctFstInfoService extends IService<WctFstInfo> {

    IPage<WctFstInfo> findByPage(QueryRequest request, WctFstInfo info);

    @Transactional
    void create(WctFstInfo entity);

    @Transactional
    void update(WctFstInfo entity);

    @Transactional
    void cancel(String id);

    @Transactional
    void delete(String[] ids);

    String isExistSubDirect(String wctFstNo);

    List<String> findAllWctFstNo();

    Map<String, Object> wctfstSelect2List(String q, QueryRequest request);
}
